﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using MyHealthOnline.Business;

namespace MyHealthOnline.Specialist
{
    public partial class ViewConsult : System.Web.UI.Page
    {
        public int ConsultId
        {
            get
            {
                return Convert.ToInt32(Request.QueryString["ConsultId"]);
            }
        }
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ucMessageHistory.SetDataSource(QuestionBusiness.GetQuestionsByConsult(ConsultId));
                ucEnd.ConsultId = ConsultId;
                ucAppointments.ConsultId = ConsultId;
            }
        }

    }
}